//
//  FighterMoveBezierTwoByAction.h
//  airfight
//
//  Created by aaron more on 12-11-6.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef airfight_FighterMoveBezierTwoByAction_h
#define airfight_FighterMoveBezierTwoByAction_h

#include "CCActionInterval.h"
#include "cocos2d.h"
#include "Trace.h"
#include "EnemyFighterSprite.h"

USING_NS_CC;

class FighterMoveBezierTwoByAction : public CCActionInterval
{
    CC_SYNTHESIZE(int, m_moveAngle,MoveAngle);
    CC_SYNTHESIZE(int, m_angleWish,AngleWish);
    CC_SYNTHESIZE(int, m_moveStep,MoveStep);
    
public:
    /** initializes the action */
    bool initWithDuration(float duration, const ccBezierConfig& c);
    
    virtual void startWithTarget(CCNode *pTarget);
    virtual void update(float time);
    
public:
    static FighterMoveBezierTwoByAction* create(Move* p_move);
    
protected:
    
    ccBezierConfig m_sConfig;
    CCPoint m_startPosition;
    
};



#endif
